//
//  FSWSegmentedControl.h
//  quhuolang_driver
//
//  Created by 曹欣欣 on 2018/3/13.
//  Copyright © 2018年 fusw. All rights reserved.
//

#import <UIKit/UIKit.h>
 
typedef void(^btnClikBlock)(NSInteger index);

@interface FSWSegmentedControl : UIScrollView

@property(nonatomic,strong)btnClikBlock block ;


/**
 初始化分段控件
 
 @param frame 大小
 @param titleArray 分段内容
 @param itemWidth 分段长度
 @param block 点击回调
 @return 返回实例
 */
//- (instancetype)initWithFrame:(CGRect)frame titles:(NSArray *)titleArray andItemWidth:(NSInteger)itemWidth backblock:(void (^)(NSInteger))block;
-(void)showTitles:(NSArray *)titleArray andItemWidth:(NSInteger)itemWidth andItemHeight:(NSInteger)itemHeight  backblock:(void (^)(NSInteger index))block;
/**
 移动滚动条
 
 @param offset 偏移量
 */
- (void)moveLine:(CGFloat)offset;

- (void)orderNumberData:(NSArray *)data;

+(instancetype)headView;

@end
